home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10076 < prev    next >
Encoding:
Text File  |  1996-08-05  |  911 b   |  37 lines

  1. Path: hal.COM!spike
  2. From: spike@hal.com (Spike White)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q: Template forward declare.
  5. Date: 5 Mar 1996 22:38:32 GMT
  6. Organization: HAL Computer Systems, Inc.
  7. Message-ID: <4hifp8$7ih@news.hal.com>
  8. References: <312BB621.41C6@fumin.nintendo.co.jp>
  9. NNTP-Posting-Host: zarathustra.hal.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Giles Goddard (giles@fumin.nintendo.co.jp) wrote:
  13. : Help. 
  14. : Does anybody know how to forward declare a class template?
  15. : something equivelent to:
  16.  
  17. : class Foo;
  18.  
  19. I have a book (C++ primer, Lippmann) that gives it as:
  20.  
  21. template <class T>
  22. class Foo;
  23.  
  24. ...
  25.  
  26. template <class T>
  27. class Foo {
  28. ...
  29. };
  30.  
  31.  
  32. --
  33. Spike White          | spike@hal.com               | Biker Nerds
  34. HaL Software Systems | '87 BMW K75S, DoD #1347     |  From  HaL
  35. Austin, TX           |  http://www.halsoft.com/users/spike/index.html 
  36. Disclaimer:  HaL, want me to speak for you?  No, Dave... 
  37.